package com.autumn.evaluator;

/**
 * 解析上下文
 */
public class ParseContext implements IParseContext {

	/**
	 * 获取默认解析上下文
	 */
	public static ParseContext Default = new ParseContext(new GeneralContext());

	/**
	 * 实例化 ParseContext 类新实例
	 *
	 * @param context
	 *            上下文
	 */
	public ParseContext(IContext context) {
		this.setContext(context);

	}

	/**
	 * 获取上下文
	 */
	private IContext context;

	@Override
	public final IContext getContext() {
		return context;
	}

	private void setContext(IContext value) {
		context = value;
	}
}